package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.form.FormInstanceDto;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.form.FormInstanceVo;

/**
 * @author lilh
 * @date 2021/3/4 11:08
 */
public interface FlowFormInstanceRepository {

    /**
     * 新增表单填报数据
     *
     * @param formInstance 表单填报数据
     * @return 是否成功
     */
    boolean insertFormInstance(FormInstanceDto formInstance);


    /**
     * 获取表单填报的数据
     *
     * @param processInstance 实例id
     * @param taskId          任务id
     * @return 填报数据
     */
    FormInstanceVo getFormInstance(String processInstance, String taskId);
}
